XENO_CONFIG := /usr/xenomai/bin/xeno-config
CFLAGS := $(shell $(XENO_CONFIG) --alchemy --cflags)
CC := $(shell $(XENO_CONFIG) --cc)
INCFLAGS = -I/home/zyj/soem/include

nicdrv.o:nicdrv.c
	cc -c nicdrv.c -o nicdrv.o $(CFLAGS) $(INCFLAGS)
